<template>
  <div>
    <h1>Count:{{ countStore.count }}</h1>
    <button @click="countStore.increment">加1</button>
    <button @click="countStore.incrementN(3)">加n</button>
    <button @click="countStore.incrementNWite(2)">等会n</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Count",
});
</script>

<script setup lang="ts">
import useCountStore from "../../store/modules/count";

const countStore = useCountStore();

console.log(countStore);
</script>

<style  scoped >
</style>